package com.seuic.hnapps.posdsdk.device_interface;


import android.graphics.Bitmap;

public interface PrinterDevice extends BaseInterface {
    /**
     * Print a bitmap
     * When Called, the print process will be started
     * The events and result of the process will be returned in callbacks
     * @see PrintCallback
     *
     * @param printCallback The callbacks in print process
     * @param bitmap The bitmap to print
     */
    void printBitmap(PrintCallback printCallback, Bitmap bitmap);

    /**
     * The callback of print process
     */
    interface PrintCallback {
        /**
         * The print complete successfully
         */
        void onSuccess();

        /**
         * The print process failed
         *
         * @param error The error description
         */
        void onFailed(String error);
    }
}
